package routers

import (
	"travelservia/controllers"
	"github.com/astaxie/beego"
)

func init() {
	beego.Router("/", &controllers.HomeController{}, "*:Home")

	beego.Router("/youji",&controllers.YoujiController{},"*:GetList")
	beego.Router("/youji/detail",&controllers.YoujiController{},"*:GetDetail")
	beego.Router("/youji/addstar",&controllers.YoujiController{},"*:AddStartCount")
	beego.Router("/youji/addbrowse",&controllers.YoujiController{},"*:AddBrowseCount")

	beego.Router("/zixun",&controllers.ZixunController{},"*:GetList")
	beego.Router("/zixun/detail",&controllers.ZixunController{},"*:GetDetail")
	beego.Router("/zixun/addstar",&controllers.ZixunController{},"*:AddStartCount")
	beego.Router("/zixun/addbrowse",&controllers.ZixunController{},"*:AddBrowseCount")

	beego.Router("/xiangmu",&controllers.XiangmuController{},"*:GetList")
	beego.Router("/xiangmu/detail",&controllers.XiangmuController{},"*:GetDetail")
	beego.Router("/xiangmu/addstar",&controllers.XiangmuController{},"*:AddStartCount")
	beego.Router("/xiangmu/addbrowse",&controllers.XiangmuController{},"*:AddBrowseCount")
}
